package com.llynic.designdemo.proxymode.cglib;

import org.springframework.cglib.proxy.Enhancer;

public class ProxyObject {
    public static void proxy(Object target) {
        Enhancer.create(target.getClass().getSuperclass(),
                target.getClass().getInterfaces(), new MyMethodInterceptor(target));
    }
}
